home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / rhtml.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  2KB  |  109 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <!-- rhtml (ruby+html) mode -->
  6.  
  7. <MODE>
  8.     <PROPS>
  9.         <PROPERTY NAME="commentStart" VALUE="<!--" />
  10.         <PROPERTY NAME="commentEnd" VALUE="-->" />
  11.         <PROPERTY NAME="commentStart" VALUE="<%#" />
  12.         <PROPERTY NAME="commentEnd" VALUE="%>" />
  13.     </PROPS>
  14.     <RULES IGNORE_CASE="TRUE">
  15.         
  16.         <!-- eRuby comment -->
  17.         <SPAN TYPE="COMMENT1">
  18.             <BEGIN><%#</BEGIN>
  19.             <END>%></END>
  20.         </SPAN>
  21.  
  22.         <!-- eRuby assignment -->
  23.         <SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
  24.             <BEGIN><%=</BEGIN>
  25.             <END>%></END>
  26.         </SPAN>
  27.  
  28.         <!-- eRuby statement -->
  29.         <SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
  30.             <BEGIN><%</BEGIN>
  31.             <END>%></END>
  32.         </SPAN>
  33.  
  34.         <!-- SGML comment -->
  35.         <SPAN TYPE="COMMENT1">
  36.             <BEGIN><!--</BEGIN>
  37.             <END>--></END>
  38.         </SPAN>
  39.  
  40.         <!-- JavaScript -->
  41.         <SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
  42.             <BEGIN><SCRIPT</BEGIN>
  43.             <END></SCRIPT></END>
  44.         </SPAN>
  45.  
  46.         <!-- stylesheet -->
  47.         <SPAN TYPE="MARKUP" DELEGATE="html::CSS">
  48.             <BEGIN><STYLE</BEGIN>
  49.             <END></STYLE></END>
  50.         </SPAN>
  51.  
  52.         <!-- DTD instructions -->
  53.         <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
  54.             <BEGIN><!</BEGIN>
  55.             <END>></END>
  56.         </SPAN>
  57.  
  58.         <!-- markup tags -->
  59.         <SPAN TYPE="MARKUP" DELEGATE="TAGS">
  60.             <BEGIN><</BEGIN>
  61.             <END>></END>
  62.         </SPAN>
  63.  
  64.         <!-- SGML entities -->
  65.         <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  66.             <BEGIN>&</BEGIN>
  67.             <END>;</END>
  68.         </SPAN>
  69.     </RULES>
  70.  
  71.     <RULES SET="TAGS" DEFAULT="MARKUP">
  72.  
  73.         <SPAN TYPE="COMMENT1">
  74.             <BEGIN><!--</BEGIN>
  75.             <END>--></END>
  76.         </SPAN>
  77.  
  78.         <SPAN TYPE="COMMENT1">
  79.             <BEGIN><%#</BEGIN>
  80.             <END>%></END>
  81.         </SPAN>
  82.  
  83.         <SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
  84.             <BEGIN>"</BEGIN>
  85.             <END>"</END>
  86.         </SPAN>
  87.  
  88.         <SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
  89.             <BEGIN>'</BEGIN>
  90.             <END>'</END>
  91.         </SPAN>
  92.  
  93.         <SEQ TYPE="OPERATOR">=</SEQ>
  94.     </RULES>
  95.  
  96.     <RULES SET="TAGS_LITERAL" DEFAULT="LITERAL1">
  97.  
  98.         <SPAN TYPE="MARKUP">
  99.             <BEGIN><%</BEGIN>
  100.             <END>%></END>
  101.         </SPAN>
  102.  
  103.         <SPAN TYPE="MARKUP">
  104.             <BEGIN><%=</BEGIN>
  105.             <END>%></END>
  106.         </SPAN>
  107.     </RULES>
  108. </MODE>
  109.